/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author 姚海陆,长春叭哥
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface OcrTempateCategory extends BasicModel<OcrTempateCategory> {
  tempateCategoryCode?: string; // 编码
  tempateCategoryName?: string; // 名称
  tagName?: string; // 标签名
  description?: string; // 描述
  trainDataSet?: string; // 训练数据集
  trainModeSet?: string; // 训练模型集
  trainInferSet?: string; // 训练推理集
  trainContent?: string; // 训练详情
  trainPromptSet?: string; // 训练提示词集
}

export const ocrTempateCategoryList = (params?: OcrTempateCategory | any) =>
  defHttp.get<OcrTempateCategory>({ url: adminPath + '/ocr/ocrTempateCategory/list', params });

export const ocrTempateCategoryListData = (params?: OcrTempateCategory | any) =>
  defHttp.post<Page<OcrTempateCategory>>({ url: adminPath + '/ocr/ocrTempateCategory/listData', params });

export const ocrTempateCategoryForm = (params?: OcrTempateCategory | any) =>
  defHttp.get<OcrTempateCategory>({ url: adminPath + '/ocr/ocrTempateCategory/form', params });

export const ocrTempateCategorySave = (params?: any, data?: OcrTempateCategory | any) =>
  defHttp.postJson<OcrTempateCategory>({ url: adminPath + '/ocr/ocrTempateCategory/save', params, data });

export const ocrTempateCategoryDelete = (params?: OcrTempateCategory | any) =>
  defHttp.get<OcrTempateCategory>({ url: adminPath + '/ocr/ocrTempateCategory/delete', params });
